You can configure route map match and set of community list.
efa policy route-map-match create [flags] Flags: --name string Name of the route map --rule string Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit] --match-ipv4-prefix string IPv4 prefix-list name --match-community-list string Community list name --match-extcommunity-list string ExtCommunity list name
efa policy route-map-match create --name foo --rule seq[10],action[permit] --match-extcommunity-list extFoo +----------------+---------+--------+ | Route Map Name | Seq num | Action | +----------------+---------+--------+ | foo | 10 | permit | +----------------+---------+--------+ Route Map details +---------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +---------------+---------+--------+-----------------+ | 10.139.44.162 | Success | | | +---------------+---------+--------+-----------------+
route-map foo permit 10 match extcommunity extFoo
efa policy route-map-match delete [flags] Flags: --name string Name of the route map --rule string Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit] --match-ipv4-prefix string IPv4 prefix-list name --match-community-list string Community list name --match-extcommunity-list string ExtCommunity list name
efa policy route-map-match delete --name foo --rule seq[10],action[permit] --match-extcommunity-list extFoo +----------------+---------+--------+ | Route Map Name | Seq num | Action | +----------------+---------+--------+ | foo | 10 | permit | +----------------+---------+--------+ Route Map details +---------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +---------------+---------+--------+-----------------+ | 10.139.44.162 | Success | | | +---------------+---------+--------+-----------------+
route-map foo permit 10 !
The CLI sets the community list for deletion.
efa policy route-map-set create [flags] Flags: --name string Name of the route map --rule string Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit] --set-community string --set-community [<1-4294967295>|<AA:NN, AA & NN is 2 bytes>|internet|local-as|no-export|no-advertise]. Example: 6550:125,local-as,internet --set-extcommunity-rt string --set-extcommunity-rt [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes | additive]. Example: 2:300,12.12.13.33:24 --set-extcommunity-soo string --set-extcommunity-soo [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes]. Example: 32:124 --set-communitylist-delete string --set-communitylist-delete [community-list name]
efa policy route-map-set create --name foo --rule seq[10],action[permit] --set-community 6550:125,internet,local-as +----------------+---------+--------+ | Route Map Name | Seq num | Action | +----------------+---------+--------+ | foo | 10 | permit | +----------------+---------+--------+ Route Map details +---------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +---------------+---------+--------+-----------------+ | 10.139.44.161 | Success | | | +---------------+---------+--------+-----------------+ | 10.139.44.162 | Success | | | +---------------+---------+--------+-----------------+ Device Results --- Time Elapsed: 10.33886575s ---
SLX# show running-config route-map route-map foo permit 10 set community 6550:125 local-as internet !
efa policy route-map-set delete [flags] Flags: --name string Name of the route map --rule string Rule in format seq[seq-num],action[permit/deny]. Example: seq[5],action[permit] --set-community string --set-community [<1-4294967295>|<AA:NN, AA & NN is 2 bytes>|internet|local-as|no-export|no-advertise]. Example: 6550:125,local-as,internet --set-extcommunity-rt string --set-extcommunity-rt [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes | additive]. Example: 2:300,12.12.13.33:24 --set-extcommunity-soo string --set-extcommunity-soo [ASN:NN|IpAddress:NN, ASN & NN is 2 or 4 bytes]. Example: 32:124 --set-communitylist-delete string --set-communitylist-delete [community-list name]
efa policy route-map-set delete --name foo --rule seq[10],action[permit] --set-community 6550:125,internet,local-as +----------------+---------+--------+ | Route Map Name | Seq num | Action | +----------------+---------+--------+ | foo | 10 | permit | +----------------+---------+--------+ Route Map details +---------------+---------+--------+-----------------+ | IP Address | Result | Reason | Rollback reason | +---------------+---------+--------+-----------------+ | 10.139.44.161 | Success | | | +---------------+---------+--------+-----------------+ | 10.139.44.162 | Success | | | +---------------+---------+--------+-----------------+ Device Results --- Time Elapsed: 11.547377938s ---
SLX# show running-config route-map route-map foo permit 10 !